// File Name: usart_macros.h
// Author: kukukukuku~
// Date: 2024-12-21

#ifndef __USART_MACROS_H
#define __USART_MACROS_H

#define USART_TX_GPIO_PORT                      GPIOB
#define USART_TX_GPIO_PIN                       GPIO_PIN_4

#define USART_RX_GPIO_PORT                      GPIOB
#define USART_RX_GPIO_PIN                       GPIO_PIN_5


#define USART_USART                             USART3
#define USART_USART_BAUDRATE                    (115200)
#define USART_USART_MODE                        USART_MODE_TX_RX
#define USART_USART_DATA_BIT                    USART_WORD_LEN_8B
#define USART_USART_STOP_BIT                    USART_STOP_BIT_1
#define USART_USART_PARITY_BIT                  USART_PARITY_NONE
#define USART_USART_RX_IRQ                      USART3_RX_IRQn
#define USART_USART_RX_IRQ_HANDLE               USART3_RX_IRQHandler


#define USART_TX_BUFFER_LEN                     (64)
#define USART_RX_BUFFER_LEN                     (64)

#endif //__USART_MACROS_H
